<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../common/taglibs.jsp"%>
<%@ page import="java.util.*"%>
<%@ page import="com.opensymphony.xwork2.ActionSupport"%>
<%@ page import="net.aiform.account.pojo.*"%>
<%@ page import="net.aiform.bean.Constant"%>
<%@ page import="net.aiform.template.pojo.*"%>
<%@ page import="ext.cjt.*"%>
<html>
	<head>
		<title>
		<%
			ActionSupport as_index = new ActionSupport();
			out.print( as_index.getText("sys.title", new String[] { as_index.getText("sys.name") }));
		%>
		</title>
	</head>
	<body>
		<%@ include file="../common/userInfo.jsp"%>
		<hr>
<div>
<%
	Template t = (Template) session.getAttribute(Constant.FORMTEMPLATE);
%>
<form action="${ctx}/t/dsn">
	<table>
		<tr>
			<td>code:</td>
			<td><input name="template.identity.code" value="<%=t.getCode() %>"></input></td>
			<td></td>
		</tr>
		<tr>
			<td>name:</td>
			<td><input></input></td>
			<td></td>
		</tr>
		<tr>
			<td>type:</td>
			<td>
			<select>
				<option value="1">一人一次</option>
				<option value="2">一人多次</option>
				<option value="3">多人一次</option>
				<option value="4">多人多次</option>
			</select>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>record access controller:</td>
			<td>
			<select>
				<option value="1">公开</option>
				<option value="2">密码</option>
				<option value="3">指定用户</option>
				<option value="4">认证码</option>
			</select>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>view access controller:</td>
			<td>
			<select>
				<option value="0">创建者</option>
				<option value="1">公开</option>
				<option value="2">密码</option>
				<option value="3">指定用户</option>
				<option value="4">认证码</option>
			</select>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>statistics access controller:</td>
			<td>
			<select>
				<option value="0">创建者</option>
				<option value="1">公开</option>
				<option value="2">密码</option>
				<option value="3">指定用户</option>
				<option value="4">认证码</option>
			</select>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>form header:</td>
			<td><textarea></textarea></td>
			<td></td>
		</tr>
		<tr>
			<td>form footer:</td>
			<td><textarea></textarea></td>
			<td></td>
		</tr>
		<tr>
			<td>start time:</td>
			<td><input value="<%=DateTools.getDatetimeString(new Date()) %>"></input></td>
			<td></td>
		</tr>
		<tr>
			<td>end time:</td>
			<td><input value="<%=DateTools.getDatetimeString(DateTools.add(new Date(),DateTools.MONTH,1)) %>"></input></td>
			<td></td>
		</tr>
		<tr>
			<td>end statistics time:</td>
			<td><input value="<%=DateTools.getDatetimeString(DateTools.add(new Date(),DateTools.DAY_OF_YEAR,50)) %>"></input></td>
			<td></td>
		</tr>
		<tr>
			<td>field amount:</td>
			<td><input value="3"></input></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td>
				<button type="submit">Submit</button>
			</td>
			<td></td>
		</tr>
	</table>
	
</form>

</div>

	</body>
</html>

